package com.shengzai

object Code02GetObject {
  def main(args: Array[String]): Unit = {
    //Java和Scala编译后都会变成class文件,所以可以相互调用。
    val student = new Student("张三",18,"男")
    println(student.name)
    println(student.age)
    println(student.gender)
    println(student)
  }
}
